package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author WZhaokang
 * @date 2020/12/29 12:39
 */
@Repository
public interface PurchaseListGoodsDao {
    int save(PurchaseListGoods listGood);

    //根据进货单id查询进货单商品信息
    List<PurchaseListGoods> getList(@Param("purchaseListId") Integer purchaseListId);

    void deleteByPurchaseListId(@Param("purchaseListId") Integer purchaseListId);

    List<PurchaseListGoods> count(@Param("sTime") String sTime,@Param("eTime") String eTime,@Param("goodsTypeId") Integer goodsTypeId,@Param("codeOrName") String codeOrName);

    List<PurchaseListGoods> selectByCodeOrName(String codeOrName);

    List<Map> selectByGoodsTypeId(Integer goodsTypeId);
}
